package controllers

import (
	"fmt"
	"github.com/gin-gonic/gin"
)

type LoginController struct{}

func LoginRegister(group *gin.RouterGroup) {
	loginController := &LoginController{}
	group.GET("/login", loginController.Login)
}

type User struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

func (c LoginController) Login(context *gin.Context) {
	fmt.Println("in api")
	u := &User{
		Name:  "222",
		Email: "222",
	}
	context.JSON(200, u)
	return
}
